package com.codecrane.core.controller;


import com.codecrane.core.power.service.PowerGroupService;
import com.codecrane.core.power.service.PowerUserService;
import com.codecrane.core.util.DateUtils;
import com.codecrane.core.web.Ajax;
import com.codecrane.core.web.AjaxReturn;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import java.util.*;

/**
 * 仪表盘主页控制器
 * Created by crane on 16/8/15.
 */
@Controller
@RequestMapping("/dashboard")
public class DashboardController {


    @Autowired
    private PowerUserService powerUserService;

    @Autowired
    private PowerGroupService powerGroupService;


    /**
     * 仪表盘主页面
     *
     * @param model
     * @return
     */
    @RequestMapping(value = {"/", ""}, method = RequestMethod.GET)
    public String dashboardIndexPage(ModelMap model) {
        return "/power/dashboard";
    }

}

